<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/recharge/rechargeOrder/rechargeOrder.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css?v=20200825">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css?v=20200825">
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <style>
        .bootstrap-table .fixed-table-container .table thead th .th-inner{
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>财务管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>会员充值信息</strong>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                        <input id="nickname" name="nickname" type="text" class="form-control shortInput" placeholder="会员名">
                        <input id="mobile" name="mobile" type="text" class="form-control shortInput input-distance" placeholder="手机号">
                        <input id="outTradeNo" name="outTradeNo" type="text" class="form-control longInput input-distance" placeholder="商户订单号或支付订单号">
                        <select id="paymentType" name="paymentType" class="form-control input-distance">
                            <option value="">支付方式</option>
                            <option value="0">微信支付</option>
                            <option value="1">支付宝</option>
                            <option value="U">银联支付</option>
                            <option value="C">农行支付</option>
                            <option value="ZX">中行微信支付</option>
                        </select>
                        <select id="rechargeType" name="rechargeType" class="form-control input-distance">
                            <option value="">充值方式</option>
                            <option value="0">公众号</option>
                            <option value="1">APP</option>
                            <option value="2">小程序</option>
                        </select>
                        <button class="btn btn-success input-distance" onclick="rechargeOrder.reLoad()">查询</button>
<%--                        <button class="btn btn-success input-distance" onclick="rechargeOrder.detailRechargeOrder()">农行交易详情</button>--%>
                    <div class="pull-left search fr exportNumInput">
                        <input id="count" name="count" type="text" class="form-control" autocomplete="off"
                               placeholder="导出条数">
                    </div>
                    <div class="pull-left search fr">
                        <button class="btn btn-success exportBtn" onclick="rechargeOrder.exportRechargeOrder()">导出</button>
                    </div>

                </div>
                <div class="row">
                    <input id="startTime" name="startTime" type="text"
                           class="form-control layer-date shortInput "
                           placeholder="开始时间">
                    <input id="endTime" name="endTime" type="text"
                           class="form-control layer-date input-distance shortInput "
                           placeholder="结束时间">
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">

    // //日期范围限制
    var start = {
        elem: '#startTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false,
        choose: function (datas) {
            $("#endTime").val("")
            end.min = datas
        }
    };
    var end = {
        elem: '#endTime',
        format: 'YYYY-MM-DD hh:mm:ss',
        istime: true,
        istoday: false,
        choose: function (datas) {
            start.max = datas; //结束日选好后，重置开始日的最大日期
        }
    };
    laydate(start);
    laydate(end);
    laydate.skin('molv');//皮肤

    rechargeOrder.init();
</script>
</body>
</html>
<script type="text/javascript">
    $(function () {
        $('#paymentType').searchableSelect();
        $('#rechargeType').searchableSelect();
    })
</script>